$(function(){
	var current = {
		initView: function(){
			//获取id
			var obj = global.getUrlParam(window.location.href);
			console.log(obj.id);
			//发送请求
			global.getDataRequest('POST', 'jsonp', global.ctx + global.newsDetailUrl, {'newsId': obj.id}, function(json){
				document.title = json.data.title;
				$('body').append(json.data.detail);
			});
		}
	};
	
	current.initView();
});